<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

	<head>
		<title>[%$ESPCMS_SOFT_TITLE%]</title>
		<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
		<link href="[%$ESPCMS_ADMIN_TEMPLATES_URL%]css/espcms_style_font_icon.css" rel="stylesheet" type="text/css" />
		<link href="[%$ESPCMS_ADMIN_TEMPLATES_URL%]css/espcms_style_public.css" rel="stylesheet" type="text/css" />
		<link href="[%$ESPCMS_ADMIN_TEMPLATES_URL%]css/espcms_all.css" rel="stylesheet" type="text/css" />
		<link href="[%$ESPCMS_ADMIN_TEMPLATES_URL%]css/espcms_framework.css" rel="stylesheet" type="text/css" />
		<link href="[%$ESPCMS_ADMIN_TEMPLATES_URL%]css/espcms_select.css" rel="stylesheet" type="text/css" />
		<link href="[%$ESPCMS_ADMIN_TEMPLATES_URL%]css/pageload.css" rel="stylesheet" type="text/css" />
		<link href="[%$ESPCMS_ADMIN_TEMPLATES_URL%]order/order.css" rel="stylesheet" type="text/css" />
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/jquery.min.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/jquery-ui.min.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/jquery.cookie.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/espcms_dialog.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/md5.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/json.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/bootstrap.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/lngpack_cn.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/espcms_form.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/espcms_formvalidation.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/espcms_dialog.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/espcms_function.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/espcms_tool.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/espcms_page.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/espcms_select.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/espcms_checkbox.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/espcms_select_checkbox.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/espcms_search_dropdown.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/espcms_batch.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/espcms_tab.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/nprogress.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/iframeResizer.contentWindow.min.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/espcms_multiple.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/citydb.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/cityselect.js"></script>
		<script type="text/javascript" src="[%$ESPCMS_ADMIN_TEMPLATES_URL%]order/order.js"></script>
		<script type="text/javascript">
			$(document).ready(function () {
				banpageKey();
				$("[placeholder]").tooltip();
				$('input[type=checkbox],input[type=radio]').espcms_checkbox();
				$("#espcms_saveInfo").espcms_formvalidation({focusName: "#username_select"});
				$("#city_select").citySelect({
					prov: "北京",
					nodata: "none"
				});
				$('#espcms_saveInfo').ajaxForm({
					type: 'POST',
					url: '[%$link.save%]',
					dataType: 'json',
					beforeSubmit: function () {
						parent.espcms_are_loading();
					},
					success: function (data) {
						parent.$("#espcms_are_loading").dialog("close");
						parent.$("body").append(data.data);
						if (data.code === 'true') {
							parent.$.espcms_sticky(data.message, {'autoclose': 3000});
							parent.frames['[%$par_iframes_name%]'].refresh('ajax_list');
							parent.$(this).espcms_window_tab('close', {'iframeName': '[%$iframes_name%]'});
						} else {
							var botton = [
								{
									text: "[%pack:botton_pack-espcms_botton_colse%]",
									class: "btn btn-lightgray",
									click: function () {
										parent.$(this).dialog("close");
										parent.$(this).espcms_window_tab('close', {'iframeName': '[%$iframes_name%]'});
									}
								}
							];
							parent.espcms_public_dialog(data.domid_name, botton, 600);
						}
						$(window).unbind('beforeunload');
					}
				});
				$('.espcms_save_cancel').espcms_window_tab('closeTab');
				$('.espcms_dialog_link').espcms_dig();
				load_tabclick('.tab_click');
				del_itme_user('.select_dropdown_list_itme');
				update_money_totoal();
			});
			var espcms_order_amount_title = '[%pack:order_pack-espcms_order_amount_title%]';
			var espcms_order_amount_validation_msg = '[%pack:order_pack-espcms_order_amount_validation_msg%]';
			var espcms_order_bprice_title = '[%pack:order_pack-espcms_order_bprice_title%]';
			var espcms_order_bprice_validation_msg = '[%pack:order_pack-espcms_order_bprice_validation_msg%]';
			var espcms_botton_del = '[%pack:botton_pack-espcms_botton_del%]';
		</script>
	</head>

	<body class="espcms_style_all">
		<div class="main">
			<div class="espcms_center_content_list">

				<div class="panel">
					<div class="panel-body form_bottom_page">
						<form class="form-horizontal admin-form" id="espcms_saveInfo" action="[%$link.save%]">
							<input type="hidden" name="token_key" id="token_key" value="[%$token.token_key%]"/>
							<input type="hidden" name="token_name" id="token_name" value="[%$token.token_name%]"/>
							<input type="hidden" name="article_link" id="article_link" value="[%$articlelink.ajax%]"/>
							<input type="hidden" name="member_link" id="member_link" value="[%$userlink.json%]"/>
							<input type="hidden" name="userid" id="userid" value="[%$read.userid%]" validation="true" data-validation-botton="user_itme_search" data-validation="^[1-9]{1}[0-9]*$" data-validation-msg="[%pack:member_pack-espcms_lable_username_id_validation_msg%]"/>
							<div class="section-divider mb40"><span>[%pack:order_pack-espcms_order_str1%]</span></div>

							<div class="form-group">
								<label class="col-sm-2 control-label">[%pack:order_pack-espcms_order_goods_list%]</label>
								<div class="col-sm-9">
									<input type="hidden" name="linkdid" id="linkdid" validation="true" data-validation-botton="select_goods" data-validation="^[\d,]+$" data-validation-msg="[%pack:order_pack-espcms_order_products_list_validation_msg%]"/>
									<input type="hidden" name="linkdid_title" id="linkdid_title"/>
									<div class="products_itme_list">
										<input type="hidden" name="product_item_count" id="product_item_count" validation="true" data-validation-botton="product_item_add" data-validation="^[1-9]{1}[0-9]*$"  data-validation-msg="[%pack:order_pack-espcms_lable_order_products_list_validation_msg%]"/>
										<table class="products_itme_table">
											<thead>
												<tr>
													<th class="table_width_60">[%pack:public_pack-espcms_lable_id_name%]</th>
													<th>[%pack:order_pack-espcms_lable_goods_name%]</th>
													<th class="table_width_100">[%pack:public_pack-espcms_count%]</th>
													<th class="table_width_140">[%pack:public_pack-espcms_unit_price%]</th>
													<th class="table_width_100">[%pack:public_pack-espcms_total_title%]</th>
													<th class="right_td table_width_60 end">[%pack:botton_pack-espcms_botton_del%]</th>
												</tr>
											</thead>
											<tbody id="product_item_list"></tbody>
											<tfoot>
												<tr>
													<td colspan="6" class="total end">
														[%pack:public_pack-espcms_footing_title%]：[%pack:public_pack-espcms_dollar_sign%]<span id="product_total">0.00</span> <input type="hidden" name="productmoney" id="productmoney"/>
													</td>
												</tr>
											</tfoot>
										</table>
									</div>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-2 control-label"></label>
								<div class="col-sm-9"><a id="select_goods" title="[%pack:order_pack-espcms_order_button_select_goods%]" class="btn btn-green min-w-200 espcms_dialog_link" data-w="800px" data-h="520px" data-url="[%$articlelink.select%]&inputname=linkdid2&inputname2=linkdid_title&iframeName=[%$iframes_name%]&select_num=1000" data-title="[%pack:order_pack-espcms_order_button_select_goods%]"><i class="espcms_icon_fa espcms_icon_fa-plus"></i> [%pack:order_pack-espcms_order_button_select_goods%]</a></div>
							</div>
							<div class="form-group">
								<label class="col-sm-2 control-label">[%pack:order_pack-espcms_order_shippingmoney%]</label>
								<div class="col-sm-9">
									<div class="input-group">
										<div class="input-group-addon">[%pack:public_pack-espcms_dollar_sign%]</div>
										<input type="text" name="shippingmoney" id="shippingmoney" class="form-control money_plus" value="0" title="[%pack:order_pack-espcms_order_shippingmoney_title%]" placeholder="[%pack:order_pack-espcms_order_shippingmoney_title%]" data-validation="^(([1-9]\d{0,20})|0)(\.\d{1,2})?$" data-validation-msg="[%pack:order_pack-espcms_order_shippingmoney_validation_msg%]" data-display-type="top" data-icon-err="false"/>
									</div>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-2 control-label">[%pack:order_pack-espcms_order_paymoney%]</label>
								<div class="col-sm-9">
									<div class="input-group">
										<div class="input-group-addon">[%pack:public_pack-espcms_dollar_sign%]</div>
										<input type="text" name="paymoney" id="paymoney" class="form-control money_plus" value="0" title="[%pack:order_pack-espcms_order_paymoney_title%]" placeholder="[%pack:order_pack-espcms_order_paymoney_title%]" data-validation="^(([1-9]\d{0,20})|0)(\.\d{1,2})?$" data-validation-msg="[%pack:order_pack-espcms_order_paymoney_validation_msg%]" data-display-type="top" data-icon-err="false"/>
									</div>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-2 control-label">[%pack:order_pack-espcms_order_invoicefeemoney%]</label>
								<div class="col-sm-9">
									<div class="input-group">
										<div class="input-group-addon">[%pack:public_pack-espcms_dollar_sign%]</div>
										<input type="text" name="invoicefeemoney" id="invoicefeemoney" class="form-control money_plus" value="0" title="[%pack:order_pack-espcms_order_invoicefeemoney_title%]" placeholder="[%pack:order_pack-espcms_order_invoicefeemoney_title%]" data-validation="^(([1-9]\d{0,20})|0)(\.\d{1,2})?$" data-validation-msg="[%pack:order_pack-espcms_order_invoicefeemoney_validation_msg%]" data-display-type="top" data-icon-err="false"/>
									</div>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-2 control-label">[%pack:order_pack-espcms_order_discount%]</label>
								<div class="col-sm-9">
									<div class="input-group">
										<div class="input-group-addon">[%pack:public_pack-espcms_dollar_sign%]</div>
										<input type="text" name="discount" id="discount" class="form-control money_minus" value="0" title="[%pack:order_pack-espcms_order_discount_title%]" placeholder="[%pack:order_pack-espcms_order_discount_title%]" data-validation="^(([1-9]\d{0,20})|0)(\.\d{1,2})?$" data-validation-msg="[%pack:order_pack-espcms_order_discount_validation_msg%]" data-display-type="top" data-icon-err="false"/>
									</div>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-2 control-label">[%pack:order_pack-espcms_order_total%]</label>
								<div class="col-sm-9 pt6">
									<input type="hidden" name="orderamount" id="orderamount" value="0.00"/>
									[%pack:order_pack-espcms_order_productmoney%]（[%pack:public_pack-espcms_dollar_sign%]<span class="text-red underline" id="order_goods_money_str">0.00</span>）+
									[%pack:order_pack-espcms_order_shippingmoney%]（[%pack:public_pack-espcms_dollar_sign%]<span class="text-red underline" id="shippingmoney_str">0.00</span>）+
									[%pack:order_pack-espcms_order_paymoney%]（[%pack:public_pack-espcms_dollar_sign%]<span class="text-red underline" id="paymoney_str">0.00</span>）+
									[%pack:order_pack-espcms_order_invoicefeemoney%]（[%pack:public_pack-espcms_dollar_sign%]<span class="text-red underline" id="invoicefeemoney_str">0.00</span>）-
									[%pack:order_pack-espcms_order_discount%]（[%pack:public_pack-espcms_dollar_sign%]<span class="text-red underline" id="discount_str">0.00</span>）=
									[%pack:order_pack-espcms_order_total%]（[%pack:public_pack-espcms_dollar_sign%]<span class="text-red underline" id="order_total_str">0.00</span>）
								</div>
							</div>

							<div class="section-divider mb40"><span>[%pack:order_pack-espcms_order_str2%]</span></div>
							<div class="form-group user_itme [%if $read.userid==''%]displaynone[%/if%]">
								<label class="col-sm-2 control-label">[%pack:member_pack-espcms_lable_user_id%]</label>
								<div class="col-sm-10">
									<div class="select_dropdown_list_itme">
										<i class="icon_sidebar espcms_icon_fa espcms_icon_fa-user" aria-hidden="true"></i>[%$read.username%]
										<span class="del_user"><i class="espcms_icon_fa espcms_icon_fa-trash" aria-hidden="true"></i></span>
									</div>
								</div>
							</div>
							<div class="form-group user_itme_search" id="user_itme_search">
								<label class="col-sm-2 control-label">[%pack:member_pack-espcms_lable_user_id%]</label>
								<div class="col-sm-9">
									<input type="text" name="username_select" class="form-control" id="username_select" placeholder="[%pack:member_pack-espcms_lable_username_id_search_key%]" title="[%pack:member_pack-espcms_lable_username_id_search_key%]"/>
								</div>
							</div>
							<script type="text/javascript">
								$("#username_select").espcms_search_dropdown({load_url: '[%$userlink.select%]', callback: add_user_select});
							</script>


							<div class="form-group">
								<label class="col-sm-2 control-label">[%pack:order_pack-espcms_order_consignee%]</label>
								<div class="col-sm-9">
									<input type="text" name="consignee" class="form-control" id="consignee" maxlength="50" placeholder="[%pack:order_pack-espcms_order_consignee_title%]" title="[%pack:order_pack-espcms_order_consignee_title%]" data-validation-minlength="2" data-validation-maxlength="50" data-validation-msg="[%pack:order_pack-espcms_order_consignee_validation_msg%]" />
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-2 control-label">[%pack:public_pack-espcms_lable_city%]</label>
								<div class="col-sm-9">
									<div id="city_select">
										<div class="col-sm-3 p0">
											<select class="form-control prov" name="province"></select>
										</div>
										<div class="col-sm-3 pl5 pr0">
											<select class="form-control city" name="city" disabled="disabled"></select>
										</div>
										<div class="col-sm-3 pl5">
											<select class="form-control dist" name="district" disabled="disabled"></select>
										</div>
									</div>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-2 control-label">[%pack:order_pack-espcms_order_address%]</label>
								<div class="col-sm-9">
									<input type="text" name="address" class="form-control" id="address" placeholder="[%pack:order_pack-espcms_order_addresstitle%]" title="[%pack:order_pack-espcms_order_addresstitle%]" data-validation-minlength="5" data-validation-maxlength="200" data-validation-msg="[%pack:order_pack-espcms_order_addressvalidation_msg%]" />
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-2 control-label">[%pack:order_pack-espcms_order_moblie%]</label>
								<div class="col-sm-9">
									<input type="text" name="mobile" class="form-control" id="mobile" placeholder="[%pack:order_pack-espcms_order_moblie_title%]" title="[%pack:order_pack-espcms_order_moblie_title%]" data-validation="^1[\d]{10}$" data-validation-msg="[%pack:order_pack-espcms_order_moblie_validation_msg%]"/>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-2 control-label">[%pack:order_pack-espcms_order_tel%]</label>
								<div class="col-sm-9">
									<input type="text" name="tel" class="form-control" id="tel" placeholder="[%pack:order_pack-espcms_order_tel_title%]" title="[%pack:order_pack-espcms_order_tel_title%]" data-isvalidation="true" data-validation="^[\d-]{6,}$" data-validation-msg="[%pack:order_pack-espcms_order_tel_validation_msg%]" />
								</div>
							</div>
							<div class="section-divider mb40"><span>[%pack:order_pack-espcms_order_str3%]</span></div>
							<div class="form-group">
								<label class="col-sm-2 control-label">[%pack:order_pack-espcms_order_isinvoice%]</label>
								<div class="col-sm-9 pt5">
									<input type="radio" name="isinvoice" class="tab_click" open_list=".isinvoice_div" value="1" checked/><span class="pr10">[%pack:order_pack-espcms_order_isinvoice_1%]</span>
									<input type="radio" name="isinvoice" class="tab_click" close_list=".isinvoice_div" value="0"/><span class="pr10">[%pack:order_pack-espcms_order_isinvoice_0%]</span>
								</div>
							</div>
							<div class="form-group isinvoice_div">
								<label class="col-sm-2 control-label">[%pack:order_pack-espcms_order_invpayee%]</label>
								<div class="col-sm-9">
									<input type="text" name="invpayee" class="form-control" id="invpayee" link-validation="isinvoice" link-gettype="radio" link-getvalue="1" data-validation-minlength="5" data-validation-maxlength="200" placeholder="[%pack:order_pack-espcms_order_invpayee_title%]" title="[%pack:order_pack-espcms_order_invpayee_title%]" data-validation-msg="[%pack:order_pack-espcms_order_invpayee_validation_msg%]"/>
								</div>
							</div>
							<div class="form-group isinvoice_div">
								<label class="col-sm-2 control-label">[%pack:order_pack-espcms_order_companysn%]</label>
								<div class="col-sm-9">
									<input type="text" name="companysn" class="form-control" id="companysn" link-validation="isinvoice" link-gettype="radio" link-getvalue="1" data-validation-minlength="5" data-validation-maxlength="50" placeholder="[%pack:order_pack-espcms_order_companysn_title%]" title="[%pack:order_pack-espcms_order_companysn_title%]" data-validation-msg="[%pack:order_pack-espcms_order_companysn_validation_msg%]"/>
								</div>
							</div>
							<div class="form-group isinvoice_div">
								<label class="col-sm-2 control-label">[%pack:order_pack-espcms_order_invcontent%]</label>
								<div class="col-sm-9">
									<input type="text" name="invcontent" class="form-control" id="invcontent" link-validation="isinvoice" link-gettype="radio" link-getvalue="1" data-isvalidation="true" data-validation-minlength="5" data-validation-maxlength="200" placeholder="[%pack:order_pack-espcms_order_invcontent_title%]" title="[%pack:order_pack-espcms_order_invcontent_title%]" data-validation-msg="[%pack:order_pack-espcms_order_invcontent_validation_msg%]"/>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-2 control-label">[%pack:order_pack-espcms_order_content%]</label>
								<div class="col-sm-9">
									<textarea class="form-control" style="width:100%;height:120px" name="content" id="content" maxlength="800" data-isvalidation="true" data-validation-maxlength="800" placeholder="[%pack:order_pack-espcms_order_content_title%]" title="[%pack:order_pack-espcms_order_content_title%]" data-validation-msg="[%pack:order_pack-espcms_order_content_validation_msg%]"></textarea>
								</div>
							</div>

							<div class="form_button">
								<button type="submit" class="btn btn-green min-w-150" formmethod="POST">[%pack:botton_pack-espcms_botton_save_ok%]</button>
								<button type="button" class="btn btn-lightgray min-w-150 espcms_save_cancel">[%pack:botton_pack-espcms_botton_save_cancel%]</button>
							</div>
						</form>
					</div>
				</div>

			</div>
		</div>
		[%link file="public/load.html"%]
		[%link file="public/load_height.html"%]
	</body>
</html>
